package com.education.business.mapper.education;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.education.model.dto.TopicContentDTO;
import com.education.model.entity.TopicInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HP
 * @description 针对表【topic_info】的数据库操作Mapper
 * @createDate 2025-05-29 14:08:20
 * @Entity com.education.business.mapper.education.TopicInfoEntity
 */
public interface TopicInfoMapper extends BaseMapper<TopicInfoEntity> {

    Page<TopicContentDTO> list(Page<TopicContentDTO> page,
                               @Param("courseName") String courseName,
                               @Param("courseId") Integer courseId,
                               @Param("topicId") Integer topicId);

    List<TopicContentDTO> listDetail(@Param("topicIdList") List<Integer> topicIdList);

    String getUserNameByTopicId(@Param("topicId") Integer topicId);

    String getUserNameByParentId(@Param("topicId") Integer parentId);


}




